package itheima.edu.info.Exdents.intends;

import java.time.LocalDateTime;

public class Date01 {
    public static void main(String[] args) {
        LocalDateTime a = LocalDateTime.now();
        System.out.println(a);
        LocalDateTime localDateTime=LocalDateTime.of(2020,11,11,11,11);
        System.out.println(localDateTime);
        int year = localDateTime.getYear();
        System.out.println(year);
        int monthValue = localDateTime.getMonthValue();
        System.out.println(monthValue);
        int dayOfMonth = localDateTime.getDayOfMonth();
        System.out.println(dayOfMonth);
        int dayOfYear = localDateTime.getDayOfYear();
        System.out.println(dayOfYear);

    }
}
